.role-select {
    width: 100%;
    height: 40px;
}

.login-container {
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-image: linear-gradient(120deg, #8fd3f4 0%, #8fd3f4 100%);
}

.image-container {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

img {
    height: 100%;
    width: 90%;
    object-fit: contain; /* 修改属性为 contain 以使图片更大 */
    border: none;
}

.login-content {
    background-color: white;
    width: 30%;
    margin-right: 5%;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-content::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 4px;
    z-index: -1;
}

.title {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    color: #4caf50; /* 更改标题的颜色 */
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* 添加动画效果 */
}

input:focus {
    outline: none;
    border-color: #4caf50; /* 更改焦点边框颜色 */
}

.login-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.login-button:hover {
    background-color: #45a049;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-link {
    margin-top: 1.5rem;
    text-align: center; /* 将 register-link 居中 */
}

.register-link a {
    text-decoration: none;
    color: #4caf50;
    font-weight: bold;
    margin-left: 8px;
}

.register-link a:hover {
    color: #45a049;
}

.dialog-footer {
    display: flex;
    justify-content: space-between;
}